package org.dromara.bykt.domain.bo;

import org.dromara.bykt.domain.BYKTCourseChapter;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 课程章节业务对象 course_chapter
 *
 * @author Hou
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BYKTCourseChapter.class, reverseConvertGenerate = false)
public class BYKTCourseChapterBo extends BaseEntity {

    /**
     * 章节ID
     */
    private Long id;

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long courseId;

    /**
     * 章节标题
     */
    @NotBlank(message = "章节标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 排序号
     */
    private Long sort;


}
